//
//  XLMacros.swift
//  LaowuquanS
//
//  Created by 王小林 on 2017/7/3.
//  Copyright © 2017年 王小林. All rights reserved.
//

import UIKit
import SnapKit
//外部网络
let kAPIURL = "http://"

//定义高度

let kStatusBarH: CGFloat = 20

let kNavigationBarH: CGFloat = 44
//tabbar高
let kTabBarH: CGFloat = 49
//屏幕宽度
let SCREEN_WIDTH = UIScreen.main.bounds.width
//屏幕高度
let SCREEN_HEIGHT = UIScreen.main.bounds.height


//导航颜色
let kXLNavBarColor: UIColor = UIColor.rgbColorFromHex(rgb:0xcc2c2c)
//背景颜色
let kXLBackgroundColor: UIColor = UIColor.rgbColorFromHex(rgb:0xf5f8fa)
//黑色
let XLBlackColor: UIColor = UIColor.rgbColorFromHex(rgb:0x323232)
//链接颜色
let kHCNavBarColor: UIColor = UIColor.rgbColorFromHex(rgb:0x54c2f6)

//圆角 边框 
func viewBorderRadius(view:UIView, radius:CGFloat,width:CGFloat,color:UIColor){
    view.layer.cornerRadius=radius
    view.layer.masksToBounds=true
    view.layer.borderWidth=width
    view.layer.borderColor=color.cgColor
}

func XLLog(_ message:Any..., file:String = #file, function:String = #function,
           line:Int = #line) {
    #if DEBUG
    //获取文件名
    let fileName = (file as NSString).lastPathComponent
    //打印日志内容
    print("\(fileName):\(line) 方法：\(function) 信息：\(message)")
    #endif
}

